|
|
(#1)
|
|
|||
|
[WCDDL] SEO Mod -
11-15-2010, 02:19 PM
Some modifications to improve the SEO on your site.
Add to .htaccess Code:
RewriteEngine On Options +FollowSymlinks RewriteRule ^index\.html$ /index.php [QSA,L,NC] RewriteRule ^download-([^/]+)-([^/]+)\.html download.php?id=$1 [QSA,L,NC] --- --- --- --- --- Open funcs.php and find Code:
string($sid)."','".mysql_real_escape_string($titles[$i])."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')"); Replace with Code:
mysql_query("INSERT INTO wcddl_queue (sid,title,type,url) VALUES ('".mysql_real_escape_string($sid)."','".mysql_real_escape_string(remove_words($titles[$i]))."','".mysql_real_escape_string($types[$i])."','".mysql_real_escape_string($urls[$i])."')");
Find Code:
?> Add on a new line before Code:
function remove_words($str){
$replace_str = '';
$bad_words = array('DVDRIP','XviD','Limited DVDRip','DvDrip-aXXo','aXXo','PROPER','Rip','Cam','\!','\?','\#');
if (!is_array($bad_words)){ $bad_words = explode(' ', $bad_words); }
for ($x=0; $x < count($bad_words); $x++){
$fix = isset($bad_words[$x]) ? $bad_words[$x] : '';
$_replace_str = $replace_str;
if (strlen($replace_str)==1){
$_replace_str = str_pad($_replace_str, strlen($fix), $replace_str);
}
$str = preg_replace('/'.$fix.'/i', $_replace_str, $str);
$string = preg_replace('/[\s]+/'. '-', $string);
}
return $str;
}
Open index.php and Find Code:
<?=$dl['title']?> Code:
a href="download-<?=$dl['id']?>-<?=str_replace(" ","-",$dl[title])?>.html"><?=$dl[title]?></a>
Save and upload all edited files. End of Mod. Say thanks if this helped you. Credits to flg for the edits. I'm just posting here |
|
(#2)
|
|
(#3)
|
| Bookmarks |
|
| Tags |
| mod, seo, wcddl |
| Thread Tools | |
| Display Modes | |
|
|